package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 入库单箱子内产品信息
 * </p>
 *
 * @author long
 * @since 2024-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_box_product")
public class OrderBoxProductDo extends Model<OrderBoxProductDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    @TableField("sku")
    private String sku;

    /**
     * 箱唛号
     */
    @TableField("box_mark_number")
    private String boxMarkNumber;

    /**
     * 箱类号
     */
    @TableField("box_type_number")
    private String boxTypeNumber;

    /**
     * 已收数量
     */
    @TableField("receipt_qty")
    private Integer receiptQty;

    /**
     * 每箱的预估数量
     */
    @TableField("per_box_qty")
    private Integer perBoxQty;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
